package tcp;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;

public class TCPClient {
    public static void main(String[] args) throws IOException {
        Socket socket=new Socket("localhost",7788);
        BufferedReader buf=new BufferedReader(new InputStreamReader(socket.getInputStream()));
        String line=buf.readLine();
        System.out.println(line);
        buf.close();
        socket.close();
    }
}
